<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="format-detection" content="telephone=no" />
    <title></title>
    <link rel="stylesheet" href="css/common.css"/>
    <link rel="stylesheet" href="css/people.css"/>
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.cookie.js"></script>
    <script src="/assets/layer/layer.js"></script>
    <script src="js/config.js"></script>
    <script src="js/template.js"></script>
    <script src="js/startmove.js"></script>
    <script src="js/hospitalize.js"></script>

</head>
<body>
<div id="header">
    <p>就诊人员</p>
    <span class="back"><a href="member_index.html">返回</a></span>
    <span class="add"></span>
</div>
<div id="main">
    <div class="center">
        <!--等待加载动画-->
        <div class="load"><img src="../imgs/loading.gif" alt=""/></div>
    </div>
</div>
<div class="losttip">
    <p>确认挂失此卡吗</p>

    <div class="yes" data-card="">确认</div>
    <div class="no">取消</div>
</div>
</body>
</html>
<script id="hosTem" type="text/html">
    {{each data value index}}
    <div class="one">
        <ul>
            <li><span>{{value.name}}</span>
                {{if value.card_num==1}}
                <i class="main">主卡</i></li>
            {{else if value.card_num==2}}
            <i class="main">副卡</i></li>
            {{else if value.card_num==3}}
            <i class="main">副卡</i></li>
            {{/if}}
            <li>就诊卡： <span>{{value.card}}</span>
                {{if value.card && value.is_loss==0}}
                <span class="getlost" data-card="{{value.card}}">挂失</span>
                {{/if}}
                {{if value.card && value.is_loss==1}}
                <span class="losted" data-card="{{value.card}}">此卡已挂失</span>
                <span class="binding" data-card="{{value.card}}" data-id="{{value.id}}"
                      data-tel="{{value.mobile}}">绑定新卡</span>
                {{/if}}
            </li>
            <li>电话：
                <span>{{value.hidelmobile}}</span>
                <span class="del" data-id="{{value.id}}">删除</span>
                {{if !value.card}}
                <span class="binding" data-card="{{value.card}}" data-id="{{value.id}}"
                      data-tel="{{value.mobile}}">绑卡</span>
                <span class="charge" onclick="javascript:window.location.href='card_recharge.html?m_id={{value.id}}&card_no={{value.card}}'">充值</span>
                {{else/}}
                <span class="charge" onclick="javascript:window.location.href='card_recharge.html?m_id={{value.id}}&card_no={{value.card}}'">充值</span>
                {{/if}}
            </li>
        </ul>
    </div>
    {{/each}}
</script>